import styles from './index.module.less';
import { Image } from 'antd';

const Card = ({data, onClick}) => {
    return (
        <div onClick={() => {
            onClick && onClick();
        }} className={styles.card}>
            <Image style={{ height: 350 }} preview={false} src={data?.goodsImage} />
            <div className={styles.title}>
                {data?.goodsName || ''}
            </div>
            <div className={styles.price}>
                ¥ &nbsp; {data?.goodsPrice || 0} &nbsp; 起
            </div>
        </div>
    )
}

export default Card;